<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="js/angular.js"></script>
</head>
<body ng-app="mainApp">
    <input type="text" ng-model="txt"/></br>
    <table border="1" width="400">
        <thead>
            <th ng-repeat="item in obj.title">{{item}}</th>
        </thead>
        <tbody>
            <tr ng-repeat="lll in obj.datas|filter:txt">
                <td>{{lll.name}}</td>
                <td>{{lll.age}}</td>
                <td>{{lll.gender}}</td>
            </tr>
        </tbody>
    </table>

</body>
<script>
    var obj = {
        title: [ 'name', 'age', 'gender' ],
        datas: [
            { name: 'jim123', age: 19, gender: '男', isShow: true },
            { name: 'jim1', age: 19, gender: '男', isShow: true },
            { name: 'tom', age: 19, gender: '男', isShow: true },
            { name: 'jim1', age: 19, gender: '男', isShow: true },
            { name: 'jim1', age: 19, gender: '男', isShow: true },
            { name: 'jack', age: 19, gender: '男', isShow: true },
            { name: 'jim1', age: 19, gender: '男', isShow: true },
            { name: 'jim1', age: 19, gender: '男', isShow: true },
            { name: 'jim2', age: 19, gender: '男', isShow: true },
            { name: 'jim3', age: 19, gender: '男', isShow: true },
            { name: 'jim4', age: 19, gender: '男', isShow: true },
            { name: 'jim5', age: 19, gender: '男', isShow: true }
        ]
    };
    angular.module('mainApp',[]).
            run(function($rootScope){
        $rootScope.obj=obj;
    })
</script>
</html>